package cn.itlight.org.mapper;

import cn.itlight.org.domain.Department;
import cn.itlight.org.query.DepartmentQuery;

import java.util.List;
/**
* @Description: TODO
* @Author: TomLiu
* @Version: 1.0
* @Date:  2022/6/21 18:43  
*/
public interface DepartmentMapper {
    /* 
    * @Title: loadAll
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    List<Department> loadAll();

    /* 
    * @Title: loadById
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    Department loadById(Long id);

    /* 
    * @Title: remove
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    void remove(Long id);

    /* 
    * @Title: update
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    void update(Department department);

    /* 
    * @Title: save
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    void save(Department department);

    /* 
    * @Title: queryData
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    List<Department> queryData(DepartmentQuery departmentQuery);

    /* 
    * @Title: queryCount
    * @Description: TODO
    * @Author: TomLiu
    * @Version: 1.0
    * @Date:  2022/6/21 18:43  
    * @Parameters: 
    * @Return 
    */
    Integer queryCount(DepartmentQuery departmentQuery);

}
